{include file="common/header.tpl"}
<section class="main">
	<nav class="left-col">{include file="common/navi-system.tpl"}</nav>
    <article class="right-col">
    	<h2><a href="{if isset($smarty.session.post.prefer)}{$smarty.session.post.prefer}{else}{$prefer}{/if}">SEO</a> &raquo; Cập nhật</h2>
        <form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}seo/saveedit" class="ui">
            <input type="hidden" name="pseoid" id="pseoid" value="{$row.seoid}" />
            <input type="hidden" name="prefer" id="prefer" value="{if isset($smarty.session.post.prefer)}{$smarty.session.post.prefer}{else}{$prefer}{/if}" />
           	<ul>
                {if isset($smarty.session.serr)}
                    <li class="error">
                        <span class="errorMessage">{$smarty.session.serr}</span>
                    </li>
                {/if}                
                <li>
                    <label for="pname">Trang <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="pname" id="pname" value="{if isset($smarty.session.post.pname)}{$smarty.session.post.pname|escape}{else}{$row.name|escape}{/if}" maxlength="100" />
                    </div>
                </li>                            
                <li>
                    <label for="ptitle">Tiêu đề <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="ptitle" id="ptitle" value="{if isset($smarty.session.post.ptitle)}{$smarty.session.post.ptitle|escape}{else}{$row.title|escape}{/if}" maxlength="100" />
                    </div>
                </li>
                <li>
                    <label for="pkeywords">Từ khóa <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="pkeywords" id="pkeywords" value="{if isset($smarty.session.post.pkeywords)}{$smarty.session.post.pkeywords|escape}{else}{$row.keywords|escape}{/if}" maxlength="255" />
                    </div>
                </li>
                <li>
                    <label for="pdescription">Mô tả <span class="required">*</span>:</label>                    
                    <div class="area">
                    	<textarea rows="1" cols="1" name="pdescription" id="pdescription">{if isset($smarty.session.post.pdescription)}{$smarty.session.post.pdescription|escape}{else}{$row.description|escape}{/if}</textarea>
                    </div>
                </li>
                <li>
                	<button type="submit"><strong>Lưu dữ liệu</strong></button>
                    <button type="button" onclick="document.location.href='{if isset($smarty.session.post.prefer)}{$smarty.session.post.prefer}{else}{$prefer}{/if}'"><strong>Hủy</strong></button> 
                </li>
            </ul>
        </form>
    </article>
</section>    
{include file="common/footer.tpl"}
                
